$(function(){
	$("#formc").validate({
        rules : {
        	"ccustom.organizationcode":{required:true},
        	"ccustom.legalperson":{required:true},
        	"ccustom.registedtime":{required:true},
        	"ccustom.runyear":{required:true,num:true},
        	"ccustom.registedmoney":{required:true,num:true},
        	"ccustom.phone":{required:true},
        	"ccustom.address":{required:true}
        },
        messages:{
        	"ccustom.organizationcode":{required: '请输入 组织机构代码!'},
    		"ccustom.legalperson":{required:'请输入 法定代表人!'},
    		"ccustom.registedtime":{required:'请选择 成立时间!'},
    		"ccustom.runyear":{required:'请输入 运营期限!',num:'运营期限只能为整数!'},
    		"ccustom.registedmoney":{required:'请输入 注册资金!',num:'注册资金格式不正确!'},
    		"ccustom.phone":{required:'请输入 联系方式!'},
    		"ccustom.address":{required:'请输入 联系地址!'}
        }
	});
})

$(function(){
	$("#formp").validate({
        rules : {
        	"pcustom.credentialsid":{required:true},
        	"pcustom.customname":{required:true},
        	"pcustom.workplace":{required:true},
        	"pcustom.phone":{required:true},
        	"pcustom.address":{required:true}
        },
        messages:{
        	"pcustom.credentialsid":{required: '请输入 身份证号!'},
        	"pcustom.customname":{required:'请输入 姓名!'},
        	"pcustom.workplace":{required:'请输入 工作单位!'},
        	"pcustom.phone":{required:'请输入 联系电话!'},
    		"pcustom.address":{required:'请输入 联系地址!'}
        }
	});
})